#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStandardItemModel>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
    void exportToExcel();
    bool createReport();
    void clearSellersTurnOver();
    bool loadPosFiles();
    void calculateValues();

private slots:
    void on_actionSchliessen_triggered();

    void on_cbSelectPOSFiles_clicked();

    void on_cpExport_clicked();

    void on_actionEinstellungen_triggered();

    void on_listWidgetPOSFiles_doubleClicked(const QModelIndex &index);

protected slots:
    void setup();
    void readSellersList();
    void writeSettings();

private:
    int m_shareValue;
    bool m_listDays;
    Ui::MainWindow *ui;
    QStandardItemModel *m_sellerModel;
};

#endif // MAINWINDOW_H
